package com.lan.seriousphysics.screens.experimentMenus;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.lan.seriousphysics.SeriousPhysicsMain;
import com.lan.seriousphysics.screens.experimentos.Colores;
import com.lan.seriousphysics.screens.experimentos.Sonidos;
import com.lan.seriousphysics.screens.experimentos.experimental;

public class OndasScreen extends AbstractInitExpScreen {

	public OndasScreen(SeriousPhysicsMain game, String tit) {
		super(game, tit);
		// TODO Auto-generated constructor stub
	}
	
    @Override
    public void show()
    {
    		super.show();
    		
    	       TextButton botonGraficas = new TextButton( res.getString("COLORES_BOT"), getSkin() );
    	       table.add( botonGraficas ).size(300, 55).spaceBottom(20);
    	       table.row();
    	       
   	        botonGraficas.addListener(new InputListener() {
	            public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
	               //super.touchUp(event, x, y, pointer, button);
	            	//Gdx.app.log( SeriousPhysicsMain.LOG, "Graficas");
	            	//game.setScreen(new ExperimentosScreen(game));
	            	game.setScreen(new Colores(game));
	            	return true;
	        }
	        
	});

    	       TextButton botonEncuentro = new TextButton( res.getString("SONIDOS_BOT"), getSkin() );
    	       table.add( botonEncuentro ).size(300, 55).spaceBottom(20);
    	       table.row();
      	        botonEncuentro.addListener(new InputListener() {
    	            public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
    	               //super.touchUp(event, x, y, pointer, button);
    	            	//Gdx.app.log( SeriousPhysicsMain.LOG, "Encuentro");
    	            	//game.setScreen(new experimental(game));
    	            	game.setScreen(new Sonidos(game));
    	            	return true;
    	        }
    	        
    	});

    	
    }

}
